package com.qf.spring2202.springmybaties.dao;
import com.qf.spring2202.springmybaties.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserDao {
    public User getUserById(@Param("id") Integer id);
    public User getUserByIdAndPassword(@Param("id") Integer id,@Param("password") String password);
    public User getUserByIdAndPassword_map(Map values);
    public User selectUserByUserInfo(User user);
    public List<User> selectUsersByUserName(User user);
    public Integer deleteUserById(@Param("id") Integer id);
    public Integer updateUser(User user);
    public Integer insertUser(User user);
}
